
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
//import FingersDanceLogic.*;

/**
 * @author byoms23
 */
public class FingersDance extends MIDlet implements CommandListener {

    private Command cmdExit, cmdPlay, cmdEnd;
    private Display display;
    private FingersDanceLogic screen;

    /**
     * 
     */
    public void startApp() {
        // Get the default display
        display = Display.getDisplay(this);

        // Create new screan
        screen = new FingersDanceLogic(display);
        display.setCurrent(screen);
        screen.start(FingersDanceLogic.LEVEL1);

        // Configure screan with commands
        cmdExit = new Command("Exit", Command.EXIT, 1);
        screen.addCommand(cmdExit);
        screen.setCommandListener(this);
    }

    /**
     *
     */
    public void pauseApp() {
    }

    /**
     *
     */
    public void destroyApp(boolean unconditional) {
    }

    /**
     *
     */
    public void commandAction(Command c, Displayable d) {
        if (c.equals(cmdExit)) {
            destroyApp(false);
            notifyDestroyed();
        }
    }
}
